package com.qian.ddj.web.controller;

import com.qian.api.ddj.model.BalanceSnapshot;
import com.qian.api.ddj.service.IBalanceSnapshotService;
import com.yaowk.api.common.PageReq;
import com.yaowk.api.common.PageResp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ddj/balanceSnapshot")
public class BalanceSnapshotController {

    @Autowired
    private IBalanceSnapshotService balanceSnapshotService;

    @GetMapping("/query")
    public PageResp<BalanceSnapshot> query(BalanceSnapshot balanceSnapshot, PageReq pageReq) {
        PageResp<BalanceSnapshot> page = balanceSnapshotService.query(balanceSnapshot, pageReq);
        return page;
    }

}
